package com.momochen.client1;

import com.momochen.client.NettyClientBootstrap;

import java.io.*;
import java.net.*;

/**
 * Created by momochen on 2017/3/16.
 */
public class oo {
    public static void main(String[] args) throws IOException {
        DatagramSocket ds  = new DatagramSocket();
        byte[] buf = "UDP Demo".getBytes();
        DatagramPacket dp = new DatagramPacket(buf,buf.length, InetAddress.getByName("192.168.1.114"), 9999);//10000为定义的端口
        ds.send(dp);
        ds.close();
    }
}
